package com.guanyong.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户基础账号信息类
 * Created by Eric.Zhang on 2017/3/21.
 */
public class UserBaseModel implements Cloneable, Serializable {
    /**
     * 用户ID，全局唯一ID
     */
    private String fId;
    /**
     * 登录用用户名
     */
    private String fUsername;
    /**
     *登录用手机号
     */
    private String fPhone;
    /**
     *登录邮箱
     */
    private String fEmail;
    /**
     *状态 -1 锁定 1 正常
     */
    private int fState;
    /**
     *密码
     */
    private String fPassword;
    /**
     *用户头像
     */
    private String fPhoto;

    private String fQqopenid;

    private String fWechatopenid;

    private String fWeibopenid;

    private Integer fRegapp;

    private Integer fRole;

    public Integer getfRole() {
        return fRole;
    }

    public void setfRole(Integer fRole) {
        this.fRole = fRole;
    }


    public Date getfIntime() {
        return fIntime;
    }

    public void setfIntime(Date fIntime) {
        this.fIntime = fIntime;
    }
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date fIntime;

    public String getfId() {
        return fId;
    }

    public void setfId(String fId) {
        this.fId = fId;
    }

    public String getfUsername() {
        return fUsername;
    }

    public void setfUsername(String fUsername) {
        this.fUsername = fUsername;
    }

    public String getfPhone() {
        return fPhone;
    }

    public void setfPhone(String fPhone) {
        this.fPhone = fPhone;
    }

    public String getfEmail() {
        return fEmail;
    }

    public void setfEmail(String fEmail) {
        this.fEmail = fEmail;
    }

    public int getfState() {
        return fState;
    }

    public void setfState(int fState) {
        this.fState = fState;
    }

    public String getfPassword() {
        return fPassword;
    }

    public void setfPassword(String fPassword) {
        this.fPassword = fPassword;
    }

    public String getfPhoto() {
        return fPhoto;
    }

    public void setfPhoto(String fPhoto) {
        this.fPhoto = fPhoto;
    }

    public String getfQqopenid() {
        return fQqopenid;
    }

    public void setfQqopenid(String fQqopenid) {
        this.fQqopenid = fQqopenid;
    }

    public String getfWechatopenid() {
        return fWechatopenid;
    }

    public void setfWechatopenid(String fWechatopenid) {
        this.fWechatopenid = fWechatopenid;
    }

    public String getfWeibopenid() {
        return fWeibopenid;
    }

    public void setfWeibopenid(String fWeibopenid) {
        this.fWeibopenid = fWeibopenid;
    }

    public Integer getfRegapp() {
        return fRegapp;
    }

    public void setfRegapp(Integer fRegapp) {
        this.fRegapp = fRegapp;
    }

    @Override
    public Object clone() {
        UserBaseModel o=null;
        try
        {
            o=(UserBaseModel)super.clone();
        }
        catch(CloneNotSupportedException e)
        {
            System.out.println(e.toString());
        }
        return o;
    }

}
